package com.swt.service.impl.S_impl;

import com.swt.dao.impl.S_impl.GetSupportPersonalDaoImpl;
import com.swt.domain.Employee;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(value = "S_getSupportPersonalService")
public class GetSupportPersonalServiceImpl implements com.swt.service.S_service.GetSupportPersonalService {
    /*注入dao层*/
    @Resource(name = "S_getSupportPersonalDao")
    private GetSupportPersonalDaoImpl getSupportPersonalDao;

    @Override
    public List<Employee> getSupportPersonal(int clubid) {
        /*调用dao*/
        List<Employee> list = getSupportPersonalDao.getSupportPersonal(clubid);
        return list;
    }

    @Override
    public Employee getSupportPersonalById(int employeeId) {
        /*调用dao*/
        Employee employee = getSupportPersonalDao.getSupportPersonalById(employeeId);
        return employee;
    }
}
